package com.priserve.retirement.entities;

// Generated Apr 27, 2013 9:50:19 PM by Hibernate Tools 4.0.0

import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * Risktolerance generated by hbm2java
 */
@Entity
@Table(name = "risktolerance", catalog = "priserve")
public class Risktolerance implements java.io.Serializable {

	private Long riskToleranceId;
	private Company company;
	private String riskToleranceName;
	private String riskToleranceStatus;
	private Set<Retirementgoalassumptions> retirementgoalassumptionses = new HashSet<Retirementgoalassumptions>(
			0);

	public Risktolerance() {
	}

	public Risktolerance(Company company, String riskToleranceName,
			String riskToleranceStatus,
			Set<Retirementgoalassumptions> retirementgoalassumptionses) {
		this.company = company;
		this.riskToleranceName = riskToleranceName;
		this.riskToleranceStatus = riskToleranceStatus;
		this.retirementgoalassumptionses = retirementgoalassumptionses;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "riskToleranceId", unique = true, nullable = false)
	public Long getRiskToleranceId() {
		return this.riskToleranceId;
	}

	public void setRiskToleranceId(Long riskToleranceId) {
		this.riskToleranceId = riskToleranceId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "companyId")
	public Company getCompany() {
		return this.company;
	}

	public void setCompany(Company company) {
		this.company = company;
	}

	@Column(name = "riskToleranceName")
	public String getRiskToleranceName() {
		return this.riskToleranceName;
	}

	public void setRiskToleranceName(String riskToleranceName) {
		this.riskToleranceName = riskToleranceName;
	}

	@Column(name = "riskToleranceStatus")
	public String getRiskToleranceStatus() {
		return this.riskToleranceStatus;
	}

	public void setRiskToleranceStatus(String riskToleranceStatus) {
		this.riskToleranceStatus = riskToleranceStatus;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "risktolerance")
	public Set<Retirementgoalassumptions> getRetirementgoalassumptionses() {
		return this.retirementgoalassumptionses;
	}

	public void setRetirementgoalassumptionses(
			Set<Retirementgoalassumptions> retirementgoalassumptionses) {
		this.retirementgoalassumptionses = retirementgoalassumptionses;
	}

}
